<form id="pagerForm" method="post" action="{:url('Order/index')}">
	<input type="hidden" name="pay_way" value="{$pay_way|default=''}">
	<input type="hidden" name="pageNum" value="{$page|default=''}"/>
	<input type="hidden" name="numPerPage" value="{$page_size|default=''}"/>
	<input type="hidden" name="order_sn" value="{$order_sn|default=''}"/>
	<input type="hidden" name="start_time" value="{$start_time|default=''}"/>
	<input type="hidden" name="end_time" value="{$end_time|default=''}"/>
	<input type="hidden" name="is_distribut" value="{$is_distribut}"/>
	<input type="hidden" name="mobile" value="{$mobile}"/>
</form>

<style>
    td{
    text-align: center;
    }
    
    th{
    text-align: center;
    }
</style>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="{:url('Order/index')}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					
					<td>订单编号：</td>
					<td><input name="order_sn" size="25" type="text" value="{$order_sn}"/></td>
                                        <td>是否已结算:</td>
					<td>
						<select class="combox" id="is_distribut" name="is_distribut">
							<option value="" selected="selected">全部</option>
							{eq name="is_distribut" value="0"}
							<option value="0" selected="selected">未结算</option>
							{else/}
							<option value="0">未结算</option>
							{/eq}

							{eq name="is_distribut" value="1"}
							<option value="1" selected="selected">已结算</option>
							{else/}
							<option value="1">已结算</option>
							{/eq}

						</select>
					</td>
                                        <td>开始时间(订单完成)：</td>
					<td><input name="start_time" type="text" class="date" datefmt="yyyy-MM-dd" readonly="true" value="{$start_time}"></td>
					<td>结束时间(订单完成)：</td>
					<td><input name="end_time" type="text" class="date" datefmt="yyyy-MM-dd" readonly="true" value="{$end_time}"></td>
                                        
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<table class="list" width="100%" layoutH="86">
		<thead>
                    <tr>
				<th colspan="4" style="color: blue;">合计：</th>
				<th colspan="4" style="color: green;"><strong style="color: red">{$price}</strong> 元</th>
			</tr>
			<tr>
				<th width="15%">订单编号</th>
                                <th width="10%">完成时间</th>
                                <th width="10%">结算时间</th>
				<th width="10%">预约时间</th> 
                                <th width="8%">是否结算</th>
				<th width="8%">订单状态</th>
				<th width="8%">订单总价</th>
				
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="val" key="i"}
			<tr>
				<td class="o-num"> {$val.order_sn}</td>
                                <td>{$val.finish_time|date='Y-m-d H:i:s',###}</td>
                                <td>
                                    {notempty name="val.distribut_time"}
                                    {$val.distribut_time|date='Y-m-d H:i:s',###}
                                    {else /}
                                    
                                    {/notempty}
                                    
                                </td>
				<td>{$val.subscribe_date|date='Y-m-d',###}</td>
                                <td>{$val.is_distribut|get_is_distribut}</td>
				<td>
					{if condition="$val.order_status eq 0"}未付款
					{elseif condition="$val.order_status eq 1"}待取车
					{elseif condition="$val.order_status eq 2"}待检车
					{elseif condition="$val.order_status eq 3"}已完成
					{elseif condition="$val.order_status eq 4"}已取消
					{/if}
				</td>
				<td>{$val.total_amount}</td>
				<td class="oper">
					<a rel="order_see" class="adeditd" href="{:url('Order/detail')}?id={$val.order_id}" target='navTab' title="详情" mask="true" style="color:#000;">查看</a>
					<!-- <a rel="order_print" class="adprint" href="{:url('Order/orderprint')}?id={$val.order_id}" target='navTab' title="打印" external="true" style="color:#000;">打印</a> -->
					
					<!-- <a rel="orderManage"  href="{:url('Order/noaccess')}?id={$val.order_id}"  target="dialog" width="600" height="300">拒单</a> -->
					
					<!-- <a rel="orderManage" href="{:url('Order/hx')}?id={$val.order_id}" target="dialog" width="600" height="300">修改状态</a> -->
					
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>共{$count}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$count}" numPerPage="{$numPerPage}" pageNumShown="10"
		currentPage="{$pageNum}"></div>
	</div>
</div>